﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EED RID: 3821
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueGetGambleInfoScRsp : IMessage<RogueGetGambleInfoScRsp>, IMessage, IEquatable<RogueGetGambleInfoScRsp>, IDeepCloneable<RogueGetGambleInfoScRsp>, IBufferMessage
	{
		// Token: 0x1700308B RID: 12427
		// (get) Token: 0x0600AB62 RID: 43874 RVA: 0x001CFB45 File Offset: 0x001CDD45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueGetGambleInfoScRsp> Parser
		{
			get
			{
				return RogueGetGambleInfoScRsp._parser;
			}
		}

		// Token: 0x1700308C RID: 12428
		// (get) Token: 0x0600AB63 RID: 43875 RVA: 0x001CFB4C File Offset: 0x001CDD4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueGetGambleInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700308D RID: 12429
		// (get) Token: 0x0600AB64 RID: 43876 RVA: 0x001CFB5E File Offset: 0x001CDD5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueGetGambleInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600AB65 RID: 43877 RVA: 0x001CFB65 File Offset: 0x001CDD65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGetGambleInfoScRsp()
		{
		}

		// Token: 0x0600AB66 RID: 43878 RVA: 0x001CFB70 File Offset: 0x001CDD70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGetGambleInfoScRsp(RogueGetGambleInfoScRsp other) : this()
		{
			this.gambleInfo_ = ((other.gambleInfo_ != null) ? other.gambleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AB67 RID: 43879 RVA: 0x001CFBBC File Offset: 0x001CDDBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGetGambleInfoScRsp Clone()
		{
			return new RogueGetGambleInfoScRsp(this);
		}

		// Token: 0x1700308E RID: 12430
		// (get) Token: 0x0600AB68 RID: 43880 RVA: 0x001CFBC4 File Offset: 0x001CDDC4
		// (set) Token: 0x0600AB69 RID: 43881 RVA: 0x001CFBCC File Offset: 0x001CDDCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGambleInfo GambleInfo
		{
			get
			{
				return this.gambleInfo_;
			}
			set
			{
				this.gambleInfo_ = value;
			}
		}

		// Token: 0x1700308F RID: 12431
		// (get) Token: 0x0600AB6A RID: 43882 RVA: 0x001CFBD5 File Offset: 0x001CDDD5
		// (set) Token: 0x0600AB6B RID: 43883 RVA: 0x001CFBDD File Offset: 0x001CDDDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600AB6C RID: 43884 RVA: 0x001CFBE6 File Offset: 0x001CDDE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueGetGambleInfoScRsp);
		}

		// Token: 0x0600AB6D RID: 43885 RVA: 0x001CFBF4 File Offset: 0x001CDDF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueGetGambleInfoScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.GambleInfo, other.GambleInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AB6E RID: 43886 RVA: 0x001CFC44 File Offset: 0x001CDE44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.gambleInfo_ != null)
			{
				num ^= this.GambleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AB6F RID: 43887 RVA: 0x001CFC99 File Offset: 0x001CDE99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AB70 RID: 43888 RVA: 0x001CFCA1 File Offset: 0x001CDEA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AB71 RID: 43889 RVA: 0x001CFCAC File Offset: 0x001CDEAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.gambleInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.GambleInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AB72 RID: 43890 RVA: 0x001CFD08 File Offset: 0x001CDF08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.gambleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.GambleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AB73 RID: 43891 RVA: 0x001CFD60 File Offset: 0x001CDF60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueGetGambleInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.gambleInfo_ != null)
			{
				if (this.gambleInfo_ == null)
				{
					this.GambleInfo = new RogueGambleInfo();
				}
				this.GambleInfo.MergeFrom(other.GambleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AB74 RID: 43892 RVA: 0x001CFDC8 File Offset: 0x001CDFC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AB75 RID: 43893 RVA: 0x001CFDD4 File Offset: 0x001CDFD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.gambleInfo_ == null)
					{
						this.GambleInfo = new RogueGambleInfo();
					}
					input.ReadMessage(this.GambleInfo);
				}
			}
		}

		// Token: 0x0400459A RID: 17818
		private static readonly MessageParser<RogueGetGambleInfoScRsp> _parser = new MessageParser<RogueGetGambleInfoScRsp>(() => new RogueGetGambleInfoScRsp());

		// Token: 0x0400459B RID: 17819
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400459C RID: 17820
		public const int GambleInfoFieldNumber = 5;

		// Token: 0x0400459D RID: 17821
		private RogueGambleInfo gambleInfo_;

		// Token: 0x0400459E RID: 17822
		public const int RetcodeFieldNumber = 6;

		// Token: 0x0400459F RID: 17823
		private uint retcode_;
	}
}
